home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / os2 / mpegenc / src / pbmplus / pnm / makefile.os2 < prev    next >
Encoding:
Makefile  |  1997-01-01  |  1.8 KB  |  70 lines

  1. # Makefile for pnm tools for 32 bit OS/2.
  2. #
  3. # Copyright (C) 1989, 1991 by Jef Poskanzer.
  4. # Modified for 32 bit OS/2 by Andy Key
  5. #
  6. # Permission to use, copy, modify, and distribute this software and its
  7. # documentation for any purpose and without fee is hereby granted, provided
  8. # that the above copyright notice appear in all copies and that both that
  9. # copyright notice and this permission notice appear in supporting
  10. # documentation.  This software is provided "as is" without express or
  11. # implied warranty.
  12.  
  13. PPMDIR =    ../ppm
  14. INCLUDEPPM =    /I$(PPMDIR)
  15. LIBPPM =    $(PPMDIR)/ppm.lib
  16. DEFPPM =    $(PPMDIR)/ppm.h
  17. DEFLIBPPM =    $(PPMDIR)/libppm.h
  18.  
  19. PGMDIR =    ../pgm
  20. INCLUDEPGM =    /I$(PGMDIR)
  21. LIBPGM =    $(PGMDIR)/pgm.lib
  22. DEFPGM =    $(PGMDIR)/pgm.h
  23. DEFLIBPGM =    $(PGMDIR)/libpgm.h
  24.  
  25. PBMDIR =    ../pbm
  26. INCLUDEPBM =    /I$(PBMDIR)
  27. LIBPBM =    $(PBMDIR)/pbm.lib
  28. DEFPBM =    $(PBMDIR)/pbm.h ../pbmplus.h
  29. DEFLIBPBM =    $(PBMDIR)/libpbm.h
  30.  
  31. INCL =        /I.. $(INCLUDEPPM) $(INCLUDEPGM) $(INCLUDEPBM)
  32. ALLCFLAGS =    $(CFLAGS) $(INCL)
  33. LIBPNM =    pnm.lib
  34.  
  35. all:        lib
  36.  
  37. $(LIBPBM):
  38.         (cd $(PBMDIR) && $(MAKE) lib)
  39.  
  40. $(LIBPGM):
  41.         (cd $(PGMDIR) && $(MAKE) lib)
  42.  
  43. $(LIBPPM):
  44.         (cd $(PPMDIR) && $(MAKE) lib)
  45.  
  46. lib:        $(LIBPNM)
  47.  
  48. $(LIBPNM):    libpnm1.obj libpnm2.obj libpnm3.obj libpnm4.obj
  49.         -del $(LIBPNM)
  50.         lib /NOLOGO $(LIBPNM) \
  51.             +libpnm1.obj +libpnm2.obj +libpnm3.obj \
  52.             +libpnm4.obj;
  53.  
  54. libpnm1.obj:    pnm.h $(DEFPPM) $(DEFPGM) $(DEFPBM) libpnm1.c
  55.         $(CC) $(ALLCFLAGS) /C+ libpnm1.c
  56.  
  57. libpnm2.obj:    pnm.h $(DEFPPM) $(DEFPGM) $(DEFPBM) libpnm2.c $(DEFLIBPPM) \
  58.         $(DEFLIBPGM) $(DEFLIBPBM)
  59.         $(CC) $(ALLCFLAGS) /C+ libpnm2.c
  60.  
  61. libpnm3.obj:    pnm.h $(DEFPPM) $(DEFPGM) $(DEFPBM) libpnm3.c $(DEFLIBPPM) \
  62.         $(DEFLIBPGM) $(DEFLIBPBM)
  63.         $(CC) $(ALLCFLAGS) /C+ libpnm3.c
  64.  
  65. libpnm4.obj:    pnm.h $(DEFPPM) $(DEFPGM) $(DEFPBM) rast.h libpnm4.c
  66.         $(CC) $(ALLCFLAGS) /C+ libpnm4.c
  67.  
  68. clean:
  69.         -del *.obj *.lib
  70.